import E from "wangeditor";
import MyEditor from './editor.vue'

const install = (Vue, globalOptions) => {
  if (globalOptions) {
    MyEditor.props.globalOptions.default = () => globalOptions
  }
  Vue.component(MyEditor.name, MyEditor)
}

const vueMyEditor = { E, MyEditor, install }

export default vueMyEditor
export { E, MyEditor, install }